<?php

return array(
    'jqgrid_resource_caption' => 'Список',
    'jqgrid_resource_col_names' => array(
        'Название', 'Код', 'Привилегии','ID'
    ),
    'jqgrid_resource_col_model' => array(
        0 => array(
            'name' => 'name',
            'index' => 'name',
            'width' => 200,
            'editable' => true,
            'search' => true,
            'editrules' => array(
                'required' => true
            )
        ),
        1 => array(
            'name' => 'code',
            'index' => 'code',
            'width' => 120,
            'editable' => true,
            'search' => true,
            'editrules' => array(
                'required' => true
            )
        ),
        2 => array(
            'name' => 'status', 'index' => 'status', 'width' => 55, 'sortable' => false,
            'editable' => false,
            'search' => true,
            'stype' => 'select',
            'searchoptions' => array(
                'value' => array(
                    Users_Model_Access_Resource::HAS_PRIVILEGES => 'Содержит привилегии',
                    Users_Model_Access_Resource::HAS_NOT_PRIVILEGES => 'Не содержит привилегий'
                )
            ),
            //'edittype' => 'checkbox',
            'formatter' => 'checkbox',
            //'editoptions' => array('value' => '1:0'),
            'formatoptions' => array('disabled' => true)
        ),
        3 => array(
            'name' => 'id',
            'index' => 'id',
            'width' => 55,
            'editable' => false,
            'search' => true,
        ),
    ),

    'jqgrid_privilege_col_names' => array(
        'Название', 'Код', 'Активность', 'ID'
    ),
    'jqgrid_privilege_col_model' => array(
        0 => array(
            'name' => 'name',
            'index' => 'name',
            'width' => 200,
            'editable' => false,
        ),
        1 => array(
            'name' => 'code',
            'index' => 'code',
            'width' => 120,
            'editable' => false,
        ),
        2 => array(
            'name' => 'status', 'index' => 'status', 'width' => 55, 'sortable' => false,
            'editable' => false,
            'edittype' => 'checkbox',
            'formatter' => 'checkbox',
            'editoptions' => array('value' => '1:0'),
            'formatoptions' => array('disabled' => true)
        ),
        3 => array(
            'name' => 'id',
            'index' => 'id',
            'width' => 55,
            'editable' => true,
            'edittype' => 'select',
            'formatter' => 'select',
            'editoptions' => array(
                'value' => null
            ),
            'editrules' => array(
                'required' => true
            ),
            'hidden' => true
        ),
    )
);

?>